<template>
	<view class="lineBox">
		<view class="lineHeadBox flexs">
			<!-- 头部可不传 -->
			<view class="lineHead">
				{{item.name}}
			</view>
		</view>
		<view class="lineBodyBox">
			<slot name="lineBody" />
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			item: {
				type: Object,
				default: () => {
					return {}
				}
			}
		},
		data() {
			return {

			}
		},
		methods: {

		},
		created() {

		}
	}
</script>

<style lang="scss" scoped>
	.lineBox {
		width: 100%;
	}

	.lineHeadBox {
		position: sticky;
		top: 0;
		z-index: 99;
		padding: 10rpx;
		background: #F7F8FB;

		.lineHead {
			color: #B7BECC;
			font-weight: 400;
			font-size: 14px;
			padding: 0 24rpx;
			box-sizing: border-box;
		}
	}
</style>